package com.xiaomazi.video.config;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: llxy-parent
 * @description: 视频配置类
 * @author: 小马子
 * @create: 2023-02-19 20:30
 **/
@Configuration
public class VideoConfiguration {

    @Bean
    public DefaultAcsClient defaultAcsClient(){
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, "LTAI5tMi4kthnTNRnTRPz1Gg", "Zulj1729TbFACsahQ79ofHHn48I6SB");
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
